package com.ruoyi.pethosital.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pethosital.mapper.AccountLoginLogMapper;
import com.ruoyi.pethosital.domain.AccountLoginLog;
import com.ruoyi.pethosital.service.IAccountLoginLogService;

/**
 * 用户登录日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-18
 */
@Service
public class AccountLoginLogServiceImpl implements IAccountLoginLogService 
{
    @Autowired
    private AccountLoginLogMapper accountLoginLogMapper;

    /**
     * 查询用户登录日志
     * 
     * @param id 用户登录日志主键
     * @return 用户登录日志
     */
    @Override
    public AccountLoginLog selectAccountLoginLogById(Long id)
    {
        return accountLoginLogMapper.selectAccountLoginLogById(id);
    }

    /**
     * 查询用户登录日志列表
     * 
     * @param accountLoginLog 用户登录日志
     * @return 用户登录日志
     */
    @Override
    public List<AccountLoginLog> selectAccountLoginLogList(AccountLoginLog accountLoginLog)
    {
        return accountLoginLogMapper.selectAccountLoginLogList(accountLoginLog);
    }

    /**
     * 新增用户登录日志
     * 
     * @param accountLoginLog 用户登录日志
     * @return 结果
     */
    @Override
    public int insertAccountLoginLog(AccountLoginLog accountLoginLog)
    {
        return accountLoginLogMapper.insertAccountLoginLog(accountLoginLog);
    }

    /**
     * 修改用户登录日志
     * 
     * @param accountLoginLog 用户登录日志
     * @return 结果
     */
    @Override
    public int updateAccountLoginLog(AccountLoginLog accountLoginLog)
    {
        return accountLoginLogMapper.updateAccountLoginLog(accountLoginLog);
    }

    /**
     * 批量删除用户登录日志
     * 
     * @param ids 需要删除的用户登录日志主键
     * @return 结果
     */
    @Override
    public int deleteAccountLoginLogByIds(Long[] ids)
    {
        return accountLoginLogMapper.deleteAccountLoginLogByIds(ids);
    }

    /**
     * 删除用户登录日志信息
     * 
     * @param id 用户登录日志主键
     * @return 结果
     */
    @Override
    public int deleteAccountLoginLogById(Long id)
    {
        return accountLoginLogMapper.deleteAccountLoginLogById(id);
    }
}
